package com.fbs.wowo.chat.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Crew {
    private Integer id;

    private String cid;

    private String photo;

    private Integer num;

    private String uid;

    private String name;

    private Byte pub;

    private String brief;

    private String qrcode;

    private Byte valid;

    private Date createTime;

    private Date updateTime;

    /************************************
     *
     * 临时存储的数据
     *
     ************************************/
    private Integer shield;          // 是否屏蔽
    private Integer isCrewMember;    // 是否是群员
    private String nickname;         // 群名片

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public String getPhoto() {
        return photo;
    }

    // TODO photo
    public String getUrlPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid == null ? null : uid.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Byte getPub() {
        return pub;
    }

    public void setPub(Byte pub) {
        this.pub = pub;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief == null ? null : brief.trim();
    }

    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode == null ? null : qrcode.trim();
    }

    public Byte getValid() {
        return valid;
    }

    public void setValid(Byte valid) {
        this.valid = valid;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getShield() {
        return shield;
    }

    public void setShield(Integer shield) {
        this.shield = shield;
    }

    public Integer getIsCrewMember() {
        return isCrewMember;
    }

    public void setIsCrewMember(Integer isCrewMember) {
        this.isCrewMember = isCrewMember;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}